import "babel-polyfill";
import "./utils/debug-console";
import Vue from "vue";
import axios from "axios";
import App from "./App.vue";
import ElementUI from "element-ui";
import "./utils/directive";
import "./icons";

import "element-ui/lib/theme-chalk/index.css";
import "@/styles/index.scss";
import "@/iconfont/iconfont.css";

import { loadExtension } from "@/extension/extension-loader";
// ...
import VxeUIAll from "vxe-pc-ui";
import "vxe-pc-ui/lib/style.css";
import VxeUITable from "vxe-table";
import "vxe-table/lib/style.css";
// ...

Vue.use(VxeUIAll);
Vue.use(VxeUITable);

loadExtension();

Vue.use(ElementUI, { size: "small" });

if (typeof window !== "undefined") {
  window.axios = axios;
}

Vue.config.productionTip = false;

new Vue({
  el: "#app",
  render: (h) => h(App),
});
